package com.demo.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.demo.core.exception.ParameterException;
import com.demo.domain.News;

import java.util.List;

public interface NewsService extends IService<News> {
    //得到新闻列表（可分页可不分页）
    Page getDisplayNewsList(Integer current,Integer size,Integer type) throws Exception;

    //得到新闻的完整内容
    News getNewsContent(Long newsId) throws ParameterException;

    //得到最新的六条系友新闻
    List<News> getLateSixFriendsNew();
}
